$OpenBSD: patch-Configure_pl,v 1.3 2015/04/09 17:20:50 pascal Exp $
--- Configure.pl.orig	Wed Mar 18 22:28:02 2015
+++ Configure.pl	Sat Mar 21 23:15:40 2015
@@ -323,6 +323,10 @@ $config{ldflags} = join ' ', @ldflags;
 $config{moarlib} = sprintf $config{lib}, $NAME;
 $config{moardll} = sprintf $config{dll}, $NAME;
 
+if (exists $ENV{'SO_VERSION'}) {
+	$config{moardll} = $config{moardll} . "." . $ENV{'SO_VERSION'};
+}
+
 # setup flags for shared builds
 unless ($args{static}) {
     $config{objflags}  = '@ccdef@MVM_BUILD_SHARED @ccshared@';
